<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta content="en" name="language">
	<title>display</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link media="screen" href="../docutils-api.css" type="text/css" rel="stylesheet">

</head>

<body>

<div class="banner">
<img src="../images/gm-107x76.png" alt="GraphicMagick logo" width="107" height="76" />
<span class="title">GraphicsMagick</span>
<form action="http://www.google.com/search">
  <input type="hidden" name="domains" value="www.graphicsmagick.org" />
  <input type="hidden" name="sitesearch" value="www.graphicsmagick.org" />
<span class="nowrap"><input type="text" name="q" size="25" maxlength="255" />&nbsp;<input type="submit" name="sa" value="Search" /></span>
</form>
</div>


<div class="navmenu">
<ul>
  <li><a href="../index.html">Home</a></li>
  <li><a href="../project.html">Project</a></li>
  <li><a href="../download.html">Download</a></li>
  <li><a href="../README.html">Install</a></li>
  <li><a href="../Hg.html">Source</a></li>
  <li><a href="../NEWS.html">News</a> </li>
  <li><a href="../utilities.html">Utilities</a></li>
  <li><a href="../programming.html">Programming</a></li>
  <li><a href="../reference.html">Reference</a></li>
</ul>
</div>

<main id="display">
<h1 class="title">display</h1>
<p class="subtitle" id="interactively-display-and-edit-an-image">Interactively display and edit an image</p>
<div class="contents topic" id="contents">
<p class="topic-title">Contents</p>
<ul class="simple">
<li><p><a class="reference internal" href="#magickxdisplaybackgroundimage" id="id3">MagickXDisplayBackgroundImage</a></p></li>
<li><p><a class="reference internal" href="#magickxdisplayimage" id="id4">MagickXDisplayImage</a></p></li>
</ul>
</div>
<section id="magickxdisplaybackgroundimage">
<h1><a class="toc-backref" href="#id3">MagickXDisplayBackgroundImage</a></h1>
<section id="synopsis">
<h2>Synopsis</h2>
<pre class="literal-block">unsigned int MagickXDisplayBackgroundImage( Display *display,
                                            <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                                            <a class="reference external" href="../api/types.html#image">Image</a> *image );</pre>
</section>
<section id="description">
<h2>Description</h2>
<p>MagickXDisplayBackgroundImage() displays an image in the background of a window.</p>
<p>The format of the MagickXDisplayBackgroundImage method is:</p>
<pre class="literal-block">unsigned int MagickXDisplayBackgroundImage( Display *display,
                                            <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                                            <a class="reference external" href="../api/types.html#image">Image</a> *image );</pre>
<dl class="simple">
<dt>display:</dt>
<dd><p>Specifies a connection to an X server;  returned from
XOpenDisplay.</p>
</dd>
<dt>resource_info:</dt>
<dd><p>Specifies a pointer to a X11 MagickXResourceInfo structure.</p>
</dd>
<dt>image:</dt>
<dd><p>Specifies a pointer to an Image structure; returned from
ReadImage.</p>
</dd>
</dl>
</section>
</section>
<section id="magickxdisplayimage">
<h1><a class="toc-backref" href="#id4">MagickXDisplayImage</a></h1>
<section id="id1">
<h2>Synopsis</h2>
<pre class="literal-block"><a class="reference external" href="../api/types.html#image">Image</a> *MagickXDisplayImage( Display *display, <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                            char ** argv, int argc, <a class="reference external" href="../api/types.html#image">Image</a> ** image,
                            unsigned long *state );</pre>
</section>
<section id="id2">
<h2>Description</h2>
<p>MagickXDisplayImage() displays an image via X11.  A new image is created and
returned if the user interactively transforms the displayed image.</p>
<p>The format of the MagickXDisplayImage method is:</p>
<pre class="literal-block"><a class="reference external" href="../api/types.html#image">Image</a> *MagickXDisplayImage( Display *display, <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                            char ** argv, int argc, <a class="reference external" href="../api/types.html#image">Image</a> ** image,
                            unsigned long *state );</pre>
<dl class="simple">
<dt>nexus:</dt>
<dd><p>Method MagickXDisplayImage returns an image when the
user chooses 'Open Image' from the command menu or picks a tile
from the image directory.  Otherwise a null image is returned.</p>
</dd>
<dt>display:</dt>
<dd><p>Specifies a connection to an X server;  returned from
XOpenDisplay.</p>
</dd>
<dt>resource_info:</dt>
<dd><p>Specifies a pointer to a X11 MagickXResourceInfo structure.</p>
</dd>
<dt>argv:</dt>
<dd><p>Specifies the application's argument list.</p>
</dd>
<dt>argc:</dt>
<dd><p>Specifies the number of arguments.</p>
</dd>
<dt>image:</dt>
<dd><p>Specifies an address to an address of an Image structure;
returned from ReadImage.</p>
</dd>
</dl>
</section>
</section>
</main>


<hr class="docutils">
<div class="document">
    <p><a href="../Copyright.html">Copyright</a> © GraphicsMagick Group 2002-2025<!--SPONSOR_LOGO--></p>
</div>

</main>
</body>
</html>
